package nc.bs.pf.changedir;

import nc.bs.pf.change.VOConversion;
import nc.vo.pf.change.UserDefineFunction;

public class CHG25TOF1 extends VOConversion {
  public String getAfterClassName() {
    return "nc.vo.arap.change.VoChangeCG";
  }
  
  public String[] getField() {
    return new String[] { 
        "H_dwbm->H_pk_corp", "H_lrr->SYSOPERATOR", "H_djrq->SYSDATE", "H_djlxbm->DESTBILLTYPE", "H_effectdate->H_dauditdate", "B_qxrq->B_effectdate", "B_ph->B_cupsourcebilltype", "B_dffbje->B_nassistsummny", "B_dfybsj->B_noriginaltaxmny", "B_cksqsh->B_csourcebillrowid", 
        "B_dfybwsje->B_noriginalcurmny", "B_pk_jobobjpha->B_cprojectphaseid", "B_ybye->B_noriginalsummny", "B_sfkxyh->H_ctermprotocolid", "B_xyzh->B_cupsourcebillid", "B_dfbbsj->B_ntaxmny", "B_bbhl->B_nexchangeotobrate", "B_dfbbwsje->B_nmoney", "B_ddhh->B_cinvoice_bid", "B_sl->B_ntaxrate", 
        "B_shlye->B_ninvoicenum", "B_dfybje->B_noriginalsummny", "B_dffbsj->B_nassisttaxmny", "B_kslb->B_idiscounttaxtype", "B_fbhl->B_nexchangeotoarate", "B_bzbm->B_ccurrencytypeid", "B_bbye->B_nsummny", "B_dfshl->B_ninvoicenum", "B_fbye->B_nassistsummny", "B_wbffbje->B_nassistcurmny", 
        "B_dfbbje->B_nsummny", "B_dj->B_noriginalcurprice", "B_ddlx->B_cinvoiceid", "B_cinventoryid->B_cbaseid", "B_fph->H_vinvoicecode", "B_hsdj->B_norgnettaxprice", "H_scomment->H_vmemo", "B_zy->B_vmemo", "B_seqnum->B_vproducenum", "B_szxmid->B_ccostsubjid", 
        "B_xm->B_cprojectid", "B_usedept->B_cusedeptid","H_zyx21->H_vdef20","B_zyx21->B_vdef18","B_zyx22->B_vdef19","B_zyx23->B_vdef20","B_zyx24->B_vdef17" };
  }
  
  public String[] getFormulas() {
    return new String[] { 
        "B_ckdh->iif(B_cupsourcebilltype==null||B_cupsourcebilltype==\"21\"||B_cupsourcebilltype==\"61\",null,getColValue(ic_general_h,vbillcode,cgeneralhid,B_cupsourcebillid))", "B_ckdid->iif(B_cupsourcebilltype==null||B_cupsourcebilltype==\"21\"||B_cupsourcebilltype==\"61\",null,B_cupsourcebillid)", "B_contractno->getColValue(ct_manage,ct_code,pk_ct_manage,getColValue(po_order_b,ccontractid,corder_bid,getColValue(po_invoice_b,corder_bid,cinvoice_bid,B_cinvoice_bid)))", "H_xslxbm->iif(DESTBUSITYPE==null,H_cbiztype,DESTBUSITYPE)", "H_zyx20->iif(H_pk_defdoc20==null,H_vdef20,H_pk_defdoc20)", "H_zyx19->iif(H_pk_defdoc19==null,H_vdef19,H_pk_defdoc19)", "H_zyx18->iif(H_pk_defdoc18==null,H_vdef18,H_pk_defdoc18)", "H_zyx17->iif(H_pk_defdoc17==null,H_vdef17,H_pk_defdoc17)", "H_zyx16->iif(H_pk_defdoc16==null,H_vdef16,H_pk_defdoc16)", "H_zyx15->iif(H_pk_defdoc15==null,H_vdef15,H_pk_defdoc15)", 
        "H_zyx14->iif(H_pk_defdoc14==null,H_vdef14,H_pk_defdoc14)", "H_zyx13->iif(H_pk_defdoc13==null,H_vdef13,H_pk_defdoc13)", "H_zyx12->iif(H_pk_defdoc12==null,H_vdef12,H_pk_defdoc12)", "H_zyx11->iif(H_pk_defdoc11==null,H_vdef11,H_pk_defdoc11)", "H_zyx10->iif(H_pk_defdoc10==null,H_vdef10,H_pk_defdoc10)", "H_zyx9->iif(H_pk_defdoc9==null,H_vdef9,H_pk_defdoc9)", "H_zyx8->iif(H_pk_defdoc8==null,H_vdef8,H_pk_defdoc8)", "H_zyx7->iif(H_pk_defdoc7==null,H_vdef7,H_pk_defdoc7)", "H_zyx6->iif(H_pk_defdoc6==null,H_vdef6,H_pk_defdoc6)", "H_zyx5->iif(H_pk_defdoc5==null,H_vdef5,H_pk_defdoc5)", 
        "H_zyx4->iif(H_pk_defdoc4==null,H_vdef4,H_pk_defdoc4)", "H_zyx3->iif(H_pk_defdoc3==null,H_vdef3,H_pk_defdoc3)", "H_zyx2->iif(H_pk_defdoc2==null,H_vdef2,H_pk_defdoc2)", "H_zyx1->iif(H_pk_defdoc1==null,H_vdef1,H_pk_defdoc1)", "B_zyx20->iif(B_pk_defdoc20==null,B_vdef20,B_pk_defdoc20)", "B_zyx19->iif(B_pk_defdoc19==null,B_vdef19,B_pk_defdoc19)", "B_zyx18->iif(B_pk_defdoc18==null,B_vdef18,B_pk_defdoc18)", "B_zyx17->iif(B_pk_defdoc17==null,B_vdef17,B_pk_defdoc17)", "B_zyx16->iif(B_pk_defdoc16==null,B_vdef16,B_pk_defdoc16)", "B_zyx15->iif(B_pk_defdoc15==null,B_vdef15,B_pk_defdoc15)", 
        "B_zyx14->iif(B_pk_defdoc14==null,B_vdef14,B_pk_defdoc14)", "B_zyx13->iif(B_pk_defdoc13==null,B_vdef13,B_pk_defdoc13)", "B_zyx12->iif(B_pk_defdoc12==null,B_vdef12,B_pk_defdoc12)", "B_zyx11->iif(B_pk_defdoc11==null,B_vdef11,B_pk_defdoc11)", "B_zyx10->iif(B_pk_defdoc10==null,B_vdef10,B_pk_defdoc10)", "B_zyx9->iif(B_pk_defdoc9==null,B_vdef9,B_pk_defdoc9)", "B_zyx8->iif(B_pk_defdoc8==null,B_vdef8,B_pk_defdoc8)", "B_zyx7->iif(B_pk_defdoc7==null,B_vdef7,B_pk_defdoc7)", "B_zyx6->iif(B_pk_defdoc6==null,B_vdef6,B_pk_defdoc6)", "B_zyx5->iif(B_pk_defdoc5==null,B_vdef5,B_pk_defdoc5)", 
        "B_zyx4->iif(B_pk_defdoc4==null,B_vdef4,B_pk_defdoc4)", "B_zyx3->iif(B_pk_defdoc3==null,B_vdef3,B_pk_defdoc3)", "B_zyx2->iif(B_pk_defdoc2==null,B_vdef2,B_pk_defdoc2)", "B_zyx1->iif(B_pk_defdoc1==null,B_vdef1,B_pk_defdoc1)", "H_prepay->\"N\"", "H_djkjqj->getKJQJ( H_djrq)", "H_fj->1", "H_djdl->\"yf\"", "H_djkjnd->getKJND( H_djrq )", "H_lybz->\"4\"", 
        "H_djmboid->\"System99300257115400\"", "H_pzglh->\"1\"", "H_qcbz->\"N\"", "H_ywbm->getdjlx( H_pk_corp , H_djlxbm)", "B_jsfsbm->\"25\"", "B_old_sys_flag->\"N\"", "B_wldx->\"1\"", "B_old_flag->\"N\"", "B_fx->\"-1\"", "B_ddh->queryOrderCodeByTypeAndBId(iif(B_cupsourcebilltype==null, \"\", B_cupsourcebilltype),iif(B_cupsourcebillrowid==null, \"\", B_cupsourcebillrowid))", 
        "B_jobid->getColValue(bd_jobmngfil,pk_jobbasfil,pk_jobmngfil,B_xmbm2)", "B_hbbm->iif(H_cpayunit ==null,H_cvendormangid,H_cpayunit)", "B_hbbm->getColValue(bd_cumandoc,pk_cubasdoc,pk_cumandoc,B_hbbm)", "B_deptid->iif(H_pk_purcorp==H_pk_corp,H_cdeptid,null)", "B_ywybm->iif(H_pk_purcorp==H_pk_corp,H_cemployeeid,null)", "H_isselectedpay->1" };
  }
  
  public String getOtherClassName() {
    return null;
  }
  
  public UserDefineFunction[] getUserDefineFunction() {
    try {
      UserDefineFunction userdefinefunction = new UserDefineFunction();
      userdefinefunction.setClassName("nc.bs.arap.change.PubchangeBO");
      userdefinefunction.setMethodName("getKJND");
      userdefinefunction.setReturnType(Class.forName("java.lang.String"));
      userdefinefunction.setArgTypes(new Class[] { Class.forName("java.lang.String") });
      userdefinefunction.setArgNames(new String[] { "&newdate" });
      UserDefineFunction userdefinefunction1 = new UserDefineFunction();
      userdefinefunction1.setClassName("nc.bs.arap.change.PubchangeBO");
      userdefinefunction1.setMethodName("getKJQJ");
      userdefinefunction1.setReturnType(Class.forName("java.lang.String"));
      userdefinefunction1.setArgTypes(new Class[] { Class.forName("java.lang.String") });
      userdefinefunction1.setArgNames(new String[] { "&d1" });
      UserDefineFunction userdefinefunction2 = new UserDefineFunction();
      userdefinefunction2.setClassName("nc.bs.arap.change.PubchangeBO");
      userdefinefunction2.setMethodName("getdjlx");
      userdefinefunction2.setReturnType(Class.forName("java.lang.String"));
      userdefinefunction2.setArgTypes(new Class[] { Class.forName("java.lang.String"), Class.forName("java.lang.String") });
      userdefinefunction2.setArgNames(new String[] { "&pk_corp", "&djlxbm" });
      UserDefineFunction userdefinefunction3 = new UserDefineFunction();
      userdefinefunction3.setClassName("nc.itf.pu.arap.QueryOrderCodeForApDMO");
      userdefinefunction3.setMethodName("queryOrderCodeByTypeAndBId");
      userdefinefunction3.setReturnType(Class.forName("java.lang.String"));
      userdefinefunction3.setArgTypes(new Class[] { Class.forName("java.lang.String"), Class.forName("java.lang.String") });
      userdefinefunction3.setArgNames(new String[] { "&sBillType", "&sOrderId" });
      UserDefineFunction[] auserdefinefunction = new UserDefineFunction[4];
      auserdefinefunction[0] = userdefinefunction;
      auserdefinefunction[1] = userdefinefunction1;
      auserdefinefunction[2] = userdefinefunction2;
      auserdefinefunction[3] = userdefinefunction3;
      return auserdefinefunction;
    } catch (ClassNotFoundException classnotfoundexception) {
      classnotfoundexception.printStackTrace();
      return null;
    } 
  }
}
